V2EX  ›  英汉词典
Enqueued related words: Iverson

Bracket Notation

释义 Definition

括号表示法:用方括号或其他括号来表达特定含义的记号方式,常见于数学与计算机科学中,例如数组索引a[i])、集合/区间表示、或某些约定的运算记号(如 Iverson 括号 [\;P\;] 表示命题是否为真)。

发音 Pronunciation (IPA)

/ˈbrækɪt noʊˈteɪʃən/

例句 Examples

She wrote the array element using bracket notation: a[0].
她用括号表示法写出数组元素:a[0]

In many programming languages, bracket notation allows you to access nested data, such as user["profile"]["email"], without calling any functions.
在许多编程语言中,括号表示法可以让你访问嵌套数据,例如 user["profile"]["email"],而无需调用任何函数。

词源 Etymology

bracket 原指“括号、托架”,来自法语 braguette(与“支撑、夹住”的概念相关),后来在排版与数学中固定表示“括号符号”。notation 来自拉丁语 notatio(“标记、记号法”)。合起来 bracket notation 就是“用括号来表达意义的一套记号/写法”。

相关词 Related Words

文学与经典著作中的用例 Literary Works

  • The C Programming Language(Kernighan & Ritchie):用 a[i] 等方括号表示法讲解数组与指针访问。
  • Introduction to Algorithms(Cormen, Leiserson, Rivest, Stein):算法伪代码与实现讨论中频繁使用数组下标的括号表示。
  • Concrete Mathematics(Graham, Knuth, Patashnik):讨论离散数学记号体系时涉及多种括号类记号(含与括号相关的表示法约定)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   844 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 18:10 · PVG 02:10 · LAX 10:10 · JFK 13:10
♥ Do have faith in what you're doing.